<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>表格插件 - 光年(Light Year Admin V4)后台管理系统模板</title>
<link rel="icon" href="favicon.ico" type="image/ico">
<meta name="keywords" content="LightYear,LightYearAdmin,光年,后台模板,后台管理系统,光年HTML模板">
<meta name="description" content="Light Year Admin V4是一个后台管理系统的HTML模板，基于Bootstrap v4.4.1。">
<meta name="author" content="yinqi">
<link data-th-href="@{/css/bootstrap.min.css}" rel="stylesheet">
<link data-th-href="@{/css/materialdesignicons.min.css}" rel="stylesheet">
<link data-th-href="@{/js/bootstrap-table/bootstrap-table.min.css}" rel="stylesheet">
<!--对话框-->
<link rel="stylesheet" data-th-href="@{/js/jconfirm/jquery-confirm.min.css}">
<!-- fontIconPicker core CSS -->
<link rel="stylesheet" type="text/css" data-th-href="@{/js/fontIconPicker/css/jquery.fonticonpicker.min.css}" />
<!-- required default theme -->
<link rel="stylesheet" type="text/css" data-th-href="@{/js/fontIconPicker/themes/dark-grey-theme/jquery.fonticonpicker.darkgrey.min.css}" />
<link data-th-href="@{/js/autocomplete/autocomplete.css}" rel="stylesheet">
<link data-th-href="@{/js/bootstrap-select/bootstrap-select.css}" rel="stylesheet">
<link data-th-href="@{/css/style.min.css}" rel="stylesheet">
</head>
<body>
<div class="container-fluid p-t-15">
  
  <div class="row">
    
    <div class="col-lg-12">
      <div class="card">
        <div class="card-body">
          <div id="toolbar" class="toolbar-btn-action">
            <button id="btn_add" type="button" class="btn btn-primary m-r-5" sec:authorize="hasAuthority('dept:add')" data-toggle="modal" data-target="#job-add" data-whatever="@mdo">
              <span class="mdi mdi-plus" aria-hidden="true"></span>新增
            </button>
            <button id="btn_edit" type="button" class="btn btn-success m-r-5" onclick="updateJob()" sec:authorize="hasAuthority('job:update')">
              <span class="mdi mdi-check" aria-hidden="true"></span>修改
            </button>
             <button id="btn_delete" type="button" class="btn btn-danger" onclick="deleteJob()" sec:authorize="hasAuthority('job:delete')">
              <span class="mdi mdi-window-close" aria-hidden="true"></span>删除
            </button>           
            <button id="btn_edit" type="button" class="btn btn-success m-r-5" onclick="runJob()" sec:authorize="hasAuthority('job:run')">
              <span class="mdi mdi-check" aria-hidden="true"></span>立即执行
            </button>
            <button id="btn_edit" type="button" class="btn btn-danger m-r-5" onclick="pauseJob()" sec:authorize="hasAuthority('job:pause')">
              <span class="mdi mdi-check" aria-hidden="true"></span>暂停
            </button>      
            <button id="btn_edit" type="button" class="btn btn-success m-r-5" onclick="resumeJob()" sec:authorize="hasAuthority('job:resume')">
              <span class="mdi mdi-check" aria-hidden="true"></span>恢复
            </button>                               
          </div>
          <table id="jobTable"></table>
        </div>
      </div>
    </div>
  </div>
</div>
<div data-th-include="admin/job/job/jobAdd"></div>
<script type="text/javascript" th:inline="javascript">
       /*<![CDATA[*/
       var ctx = /*[[@{/}]]*/ '';
       var userName = [[${#authentication.principal.username}]];
       /*]]>*/
</script>
<script type="text/javascript" data-th-src="@{/js/jquery.min.js}"></script>
<script type="text/javascript" data-th-src="@{/js/popper.min.js}"></script>
<script type="text/javascript" data-th-src="@{/js/bootstrap.min.js}"></script>
<script type="text/javascript" data-th-src="@{/js/jquery-confirm/jquery-confirm.min.js}"></script>
<script type="text/javascript" data-th-src="@{/js/bootstrap-table/bootstrap-table.min.js}"></script>
<script type="text/javascript" data-th-src="@{/js/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"></script>
<script type="text/javascript" data-th-src="@{/js/bootstrap-select/bootstrap-select.min.js}"></script>
<script type="text/javascript" data-th-src="@{/js/bootstrap-select/i18n/defaults-zh_CN.min.js}"></script>
<!-- fontIconPicker JS -->
<script type="text/javascript" data-th-src="@{/js/fontIconPicker/jquery.fonticonpicker.min.js}"></script>
<script data-th-src="@{/js/autocomplete/autocomplete.js}"></script>
<script type="text/javascript" data-th-src="@{/js/main.min.js}"></script>
<script type="text/javascript" data-th-src="@{/js/common.js}"></script>
<!--消息提示-->
<script data-th-src="@{/js/bootstrap-notify.min.js}"></script>
<!--对话框-->
<script type="text/javascript" data-th-src="@{/js/jconfirm/jquery-confirm.min.js}"></script>
<script type="text/javascript" data-th-src="@{/js/lightyear.js}"></script>
<script data-th-src="@{/js/app/job/job/job.js}"></script>
<script data-th-src="@{/js/app/job/job/jobAdd.js}"></script>
<script data-th-src="@{/js/app/job/job/jobEdit.js}"></script>
</body>
</html>